#ifndef WS2812_WS2812_CONF_TEMPLATE_H
#define WS2812_WS2812_CONF_TEMPLATE_H

#include "WS2812_Type.h"
#include <stdint.h>

#define WS2812_DIN           PA02
#define WS2812_GPTMR         1
#define WS2812_GPTMR_CHANNLE 1

#define WS2812_LED_CONNECT WS2812_CONNECT_LINE

#if WS2812_LED_CONNECT == WS2812_CONNECT_LINE
#define WS2812_LED_NUM 1
#elif WS2812_LED_CONNECT == WS2812_CONNECT_MATRIX
#define WS2812_LED_COL 5 // 行
#define WS2812_LED_ROW 5 // 列
#define WS2812_LED_NUM (WS2812_LED_COL * WS2812_LED_ROW)
#elif WS2812_LED_CONNECT == WS2812_CONNECT_3D
#define WS2812_LED_COL   5 // 行
#define WS2812_LED_ROW   5 // 列
#define WS2812_LED_LAYER 5 // 层
#define WS2812_LED_NUM   (WS2812_LED_COL * WS2812_LED_ROW * WS2812_LED_LAYER)
#endif
#endif // WS2812_WS2812_CONF_TEMPLATE_H
